/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Microsoft YaHei', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                url('../img/home.jpg') no-repeat center/cover fixed;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: transparent;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 90%;
    z-index: 1000;
    margin-top: 40px; /* 根据需要调整下移的距离 */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.8rem;
    color: #ff6b00;
    font-weight: 700;
    margin-left: 30px;
}

.logo-svg {
    width: 50px; /* 假设宽度为50px */
    height: 50px; /* 假设高度为50px */
}

.nav-buttons {
    display: flex;
    gap: 20px; /* 按钮之间的间距 */
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.nav-btn:hover {
    background-color: #0056b3;
}

/* 内容区域 */
.content {
    margin-top: 8rem;
    padding: 2rem 5%;
    text-align: center;
    color: white;
    transition: opacity 0.5s ease;

}

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.slogan p {
    font-size: 1.2rem;
    line-height: 2;
    margin: 1rem 0;
    opacity: 0.9;
}

.fade-out {
    opacity: 0;
}

.fade-in {
    opacity: 1;
}

